package com.changgou.goods.feign;

import com.changgou.entity.Result;
import com.changgou.goods.pojo.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author kfzhao
 * @version 1.0
 * @interfaceName CategoryFeign
 * @description
 * @date 2021/12/31 0:46
 **/
@FeignClient(name = "goods")
public interface CategoryFeign {


    /**
     * 根据分类ID查询分类信息
     *
     * @param id
     * @return com.changgou.entity.Result<com.changgou.goods.pojo.Category>
     * @throws
     * @description
     * @author kfzhao
     * @date 2021/12/31 0:49
     */
    @GetMapping("/category/{id}")
    Result<Category> findById(@PathVariable("id") Integer id);
}
